package Gui;


import javax.swing.JPanel;
import java.awt.GridBagLayout;
import javax.swing.JLabel;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.Color;
import java.awt.Font;
import java.awt.Dimension;
import General.Phrase;
import javax.swing.SwingConstants;
import java.awt.Component;
import javax.swing.border.LineBorder;


@SuppressWarnings("serial")
public class Phrase_panel1 extends JPanel {

	/**
	 * Create the panel.
	 */

	JLabel label_0;
	JLabel label_1;
	JLabel label_2;
	JLabel label_3;
	JLabel label_4;
	JLabel label_5;
	JLabel label_6;
	JLabel label_7;
	JLabel label_8;
	JLabel label_9;
	JLabel label_10;
	JLabel label_11;
	JLabel label_12;
	JLabel label_13;
	JLabel label_14;
	JLabel label_15;
	JLabel label_16;
	JLabel label_17;
	JLabel label_18;
	JLabel label_19;
	JLabel label_20;
	JLabel label_21;
	JLabel label_22;
	JLabel label_23;
	JLabel label_24;
	JLabel label_25;
	JLabel defLabel;


	public Phrase_panel1() {
		setForeground(Color.WHITE);
		setOpaque(false);
		setBackground(Color.WHITE);
		GridBagLayout gridBagLayout = new GridBagLayout();
		gridBagLayout.columnWidths = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 22, 0};
		gridBagLayout.rowHeights = new int[]{0, 0, 0, 0, 0, 20, 0};
		gridBagLayout.columnWeights = new double[]{1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, Double.MIN_VALUE};
		gridBagLayout.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		setLayout(gridBagLayout);

		label_0 = new JLabel(" ");
		label_0.setForeground(Color.WHITE);
		label_0.setHorizontalAlignment(SwingConstants.CENTER);
		label_0.setSize(new Dimension(20, 25));
		label_0.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_0.setHorizontalTextPosition(SwingConstants.CENTER);
		label_0.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_0.setMinimumSize(new Dimension(20, 25));
		label_0.setMaximumSize(new Dimension(20, 25));
		label_0.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_0.setBackground(Color.WHITE);
		GridBagConstraints gbc_label = new GridBagConstraints();
		gbc_label.fill = GridBagConstraints.BOTH;
		gbc_label.insets = new Insets(0, 0, 5, 5);
		gbc_label.gridx = 2;
		gbc_label.gridy = 1;
		add(label_0, gbc_label);

		label_1 = new JLabel(" ");
		label_1.setForeground(Color.WHITE);
		label_1.setHorizontalAlignment(SwingConstants.CENTER);
		label_1.setSize(new Dimension(20, 25));
		label_1.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_1.setHorizontalTextPosition(SwingConstants.CENTER);
		label_1.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_1.setMinimumSize(new Dimension(20, 25));
		label_1.setMaximumSize(new Dimension(20, 25));
		label_1.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_1.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_1 = new GridBagConstraints();
		gbc_label_1.fill = GridBagConstraints.BOTH;
		gbc_label_1.insets = new Insets(0, 0, 5, 5);
		gbc_label_1.gridx = 3;
		gbc_label_1.gridy = 1;
		add(label_1, gbc_label_1);

		label_2 = new JLabel(" ");
		label_2.setForeground(Color.WHITE);
		label_2.setHorizontalAlignment(SwingConstants.CENTER);
		label_2.setSize(new Dimension(20, 25));
		label_2.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_2.setHorizontalTextPosition(SwingConstants.CENTER);
		label_2.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_2.setMinimumSize(new Dimension(20, 25));
		label_2.setMaximumSize(new Dimension(20, 25));
		label_2.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_2.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_2 = new GridBagConstraints();
		gbc_label_2.fill = GridBagConstraints.BOTH;
		gbc_label_2.insets = new Insets(0, 0, 5, 5);
		gbc_label_2.gridx = 4;
		gbc_label_2.gridy = 1;
		add(label_2, gbc_label_2);

		label_3 = new JLabel(" ");
		label_3.setForeground(Color.WHITE);
		label_3.setHorizontalAlignment(SwingConstants.CENTER);
		label_3.setSize(new Dimension(20, 25));
		label_3.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_3.setHorizontalTextPosition(SwingConstants.CENTER);
		label_3.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_3.setMinimumSize(new Dimension(20, 25));
		label_3.setMaximumSize(new Dimension(20, 25));
		label_3.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_3.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_3 = new GridBagConstraints();
		gbc_label_3.fill = GridBagConstraints.BOTH;
		gbc_label_3.insets = new Insets(0, 0, 5, 5);
		gbc_label_3.gridx = 5;
		gbc_label_3.gridy = 1;
		add(label_3, gbc_label_3);

		label_4 = new JLabel(" ");
		label_4.setForeground(Color.WHITE);
		label_4.setHorizontalAlignment(SwingConstants.CENTER);
		label_4.setSize(new Dimension(20, 25));
		label_4.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_4.setHorizontalTextPosition(SwingConstants.CENTER);
		label_4.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_4.setMinimumSize(new Dimension(20, 25));
		label_4.setMaximumSize(new Dimension(20, 25));
		label_4.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_4.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_4 = new GridBagConstraints();
		gbc_label_4.fill = GridBagConstraints.BOTH;
		gbc_label_4.insets = new Insets(0, 0, 5, 5);
		gbc_label_4.gridx = 6;
		gbc_label_4.gridy = 1;
		add(label_4, gbc_label_4);

		label_5 = new JLabel(" ");
		label_5.setForeground(Color.WHITE);
		label_5.setHorizontalAlignment(SwingConstants.CENTER);
		label_5.setSize(new Dimension(20, 25));
		label_5.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_5.setHorizontalTextPosition(SwingConstants.CENTER);
		label_5.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_5.setMinimumSize(new Dimension(20, 25));
		label_5.setMaximumSize(new Dimension(20, 25));
		label_5.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_5.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_5 = new GridBagConstraints();
		gbc_label_5.fill = GridBagConstraints.BOTH;
		gbc_label_5.insets = new Insets(0, 0, 5, 5);
		gbc_label_5.gridx = 7;
		gbc_label_5.gridy = 1;
		add(label_5, gbc_label_5);

		label_6 = new JLabel(" ");
		label_6.setForeground(Color.WHITE);
		label_6.setHorizontalAlignment(SwingConstants.CENTER);
		label_6.setSize(new Dimension(20, 25));
		label_6.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_6.setHorizontalTextPosition(SwingConstants.CENTER);
		label_6.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_6.setMinimumSize(new Dimension(20, 25));
		label_6.setMaximumSize(new Dimension(20, 25));
		label_6.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_6.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_6 = new GridBagConstraints();
		gbc_label_6.fill = GridBagConstraints.BOTH;
		gbc_label_6.insets = new Insets(0, 0, 5, 5);
		gbc_label_6.gridx = 8;
		gbc_label_6.gridy = 1;
		add(label_6, gbc_label_6);

		label_7 = new JLabel(" ");
		label_7.setForeground(Color.WHITE);
		label_7.setHorizontalAlignment(SwingConstants.CENTER);
		label_7.setSize(new Dimension(20, 25));
		label_7.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_7.setHorizontalTextPosition(SwingConstants.CENTER);
		label_7.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_7.setMinimumSize(new Dimension(20, 25));
		label_7.setMaximumSize(new Dimension(20, 25));
		label_7.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_7.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_7 = new GridBagConstraints();
		gbc_label_7.fill = GridBagConstraints.BOTH;
		gbc_label_7.insets = new Insets(0, 0, 5, 5);
		gbc_label_7.gridx = 9;
		gbc_label_7.gridy = 1;
		add(label_7, gbc_label_7);

		label_8 = new JLabel(" ");
		label_8.setForeground(Color.WHITE);
		label_8.setSize(new Dimension(20, 25));
		label_8.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_8.setHorizontalTextPosition(SwingConstants.CENTER);
		label_8.setHorizontalAlignment(SwingConstants.CENTER);
		label_8.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_8.setMinimumSize(new Dimension(20, 25));
		label_8.setMaximumSize(new Dimension(20, 25));
		label_8.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_8.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_8 = new GridBagConstraints();
		gbc_label_8.fill = GridBagConstraints.BOTH;
		gbc_label_8.insets = new Insets(0, 0, 5, 5);
		gbc_label_8.gridx = 1;
		gbc_label_8.gridy = 2;
		add(label_8, gbc_label_8);

		label_9 = new JLabel(" ");
		label_9.setForeground(Color.WHITE);
		label_9.setHorizontalAlignment(SwingConstants.CENTER);
		label_9.setSize(new Dimension(20, 25));
		label_9.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_9.setHorizontalTextPosition(SwingConstants.CENTER);
		label_9.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_9.setMinimumSize(new Dimension(20, 25));
		label_9.setMaximumSize(new Dimension(20, 25));
		label_9.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_9.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_9 = new GridBagConstraints();
		gbc_label_9.fill = GridBagConstraints.BOTH;
		gbc_label_9.insets = new Insets(0, 0, 5, 5);
		gbc_label_9.gridx = 2;
		gbc_label_9.gridy = 2;
		add(label_9, gbc_label_9);

		label_10 = new JLabel(" ");
		label_10.setForeground(Color.WHITE);
		label_10.setHorizontalAlignment(SwingConstants.CENTER);
		label_10.setSize(new Dimension(20, 25));
		label_10.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_10.setHorizontalTextPosition(SwingConstants.CENTER);
		label_10.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_10.setMinimumSize(new Dimension(20, 25));
		label_10.setMaximumSize(new Dimension(20, 25));
		label_10.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_10.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_10 = new GridBagConstraints();
		gbc_label_10.fill = GridBagConstraints.BOTH;
		gbc_label_10.insets = new Insets(0, 0, 5, 5);
		gbc_label_10.gridx = 3;
		gbc_label_10.gridy = 2;
		add(label_10, gbc_label_10);

		label_11 = new JLabel(" ");
		label_11.setForeground(Color.WHITE);
		label_11.setHorizontalAlignment(SwingConstants.CENTER);
		label_11.setSize(new Dimension(20, 25));
		label_11.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_11.setHorizontalTextPosition(SwingConstants.CENTER);
		label_11.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_11.setMinimumSize(new Dimension(20, 25));
		label_11.setMaximumSize(new Dimension(20, 25));
		label_11.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_11.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_11 = new GridBagConstraints();
		gbc_label_11.fill = GridBagConstraints.BOTH;
		gbc_label_11.insets = new Insets(0, 0, 5, 5);
		gbc_label_11.gridx = 4;
		gbc_label_11.gridy = 2;
		add(label_11, gbc_label_11);

		label_12 = new JLabel(" ");
		label_12.setForeground(Color.WHITE);
		label_12.setHorizontalAlignment(SwingConstants.CENTER);
		label_12.setSize(new Dimension(20, 25));
		label_12.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_12.setHorizontalTextPosition(SwingConstants.CENTER);
		label_12.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_12.setMinimumSize(new Dimension(20, 25));
		label_12.setMaximumSize(new Dimension(20, 25));
		label_12.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_12.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_12 = new GridBagConstraints();
		gbc_label_12.fill = GridBagConstraints.BOTH;
		gbc_label_12.insets = new Insets(0, 0, 5, 5);
		gbc_label_12.gridx = 5;
		gbc_label_12.gridy = 2;
		add(label_12, gbc_label_12);

		label_13 = new JLabel(" ");
		label_13.setForeground(Color.WHITE);
		label_13.setHorizontalAlignment(SwingConstants.CENTER);
		label_13.setSize(new Dimension(20, 25));
		label_13.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_13.setHorizontalTextPosition(SwingConstants.CENTER);
		label_13.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_13.setMinimumSize(new Dimension(20, 25));
		label_13.setMaximumSize(new Dimension(20, 25));
		label_13.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_13.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_13 = new GridBagConstraints();
		gbc_label_13.fill = GridBagConstraints.BOTH;
		gbc_label_13.insets = new Insets(0, 0, 5, 5);
		gbc_label_13.gridx = 6;
		gbc_label_13.gridy = 2;
		add(label_13, gbc_label_13);

		label_14 = new JLabel(" ");
		label_14.setForeground(Color.WHITE);
		label_14.setHorizontalAlignment(SwingConstants.CENTER);
		label_14.setSize(new Dimension(20, 25));
		label_14.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_14.setHorizontalTextPosition(SwingConstants.CENTER);
		label_14.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_14.setMinimumSize(new Dimension(20, 25));
		label_14.setMaximumSize(new Dimension(20, 25));
		label_14.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_14.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_14 = new GridBagConstraints();
		gbc_label_14.fill = GridBagConstraints.BOTH;
		gbc_label_14.insets = new Insets(0, 0, 5, 5);
		gbc_label_14.gridx = 7;
		gbc_label_14.gridy = 2;
		add(label_14, gbc_label_14);

		label_15 = new JLabel(" ");
		label_15.setForeground(Color.WHITE);
		label_15.setHorizontalAlignment(SwingConstants.CENTER);
		label_15.setSize(new Dimension(20, 25));
		label_15.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_15.setHorizontalTextPosition(SwingConstants.CENTER);
		label_15.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_15.setMinimumSize(new Dimension(20, 25));
		label_15.setMaximumSize(new Dimension(20, 25));
		label_15.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_15.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_15 = new GridBagConstraints();
		gbc_label_15.fill = GridBagConstraints.BOTH;
		gbc_label_15.insets = new Insets(0, 0, 5, 5);
		gbc_label_15.gridx = 8;
		gbc_label_15.gridy = 2;
		add(label_15, gbc_label_15);

		label_16 = new JLabel(" ");
		label_16.setForeground(Color.WHITE);
		label_16.setHorizontalAlignment(SwingConstants.CENTER);
		label_16.setSize(new Dimension(20, 25));
		label_16.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_16.setHorizontalTextPosition(SwingConstants.CENTER);
		label_16.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_16.setMinimumSize(new Dimension(20, 25));
		label_16.setMaximumSize(new Dimension(20, 25));
		label_16.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_16.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_16 = new GridBagConstraints();
		gbc_label_16.fill = GridBagConstraints.BOTH;
		gbc_label_16.insets = new Insets(0, 0, 5, 5);
		gbc_label_16.gridx = 9;
		gbc_label_16.gridy = 2;
		add(label_16, gbc_label_16);

		label_17 = new JLabel(" ");
		label_17.setForeground(Color.WHITE);
		label_17.setHorizontalAlignment(SwingConstants.CENTER);
		label_17.setSize(new Dimension(20, 25));
		label_17.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_17.setHorizontalTextPosition(SwingConstants.CENTER);
		label_17.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_17.setMinimumSize(new Dimension(20, 25));
		label_17.setMaximumSize(new Dimension(20, 25));
		label_17.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_17.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_17 = new GridBagConstraints();
		gbc_label_17.fill = GridBagConstraints.BOTH;
		gbc_label_17.insets = new Insets(0, 0, 5, 5);
		gbc_label_17.gridx = 10;
		gbc_label_17.gridy = 2;
		add(label_17, gbc_label_17);

		label_18 = new JLabel(" ");
		label_18.setForeground(Color.WHITE);
		label_18.setHorizontalAlignment(SwingConstants.CENTER);
		label_18.setSize(new Dimension(20, 25));
		label_18.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_18.setHorizontalTextPosition(SwingConstants.CENTER);
		label_18.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_18.setMinimumSize(new Dimension(20, 25));
		label_18.setMaximumSize(new Dimension(20, 25));
		label_18.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_18.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_18 = new GridBagConstraints();
		gbc_label_18.fill = GridBagConstraints.BOTH;
		gbc_label_18.insets = new Insets(0, 0, 5, 5);
		gbc_label_18.gridx = 2;
		gbc_label_18.gridy = 3;
		add(label_18, gbc_label_18);

		label_19 = new JLabel(" ");
		label_19.setForeground(Color.GRAY);
		label_19.setHorizontalAlignment(SwingConstants.CENTER);
		label_19.setSize(new Dimension(20, 25));
		label_19.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_19.setHorizontalTextPosition(SwingConstants.CENTER);
		label_19.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_19.setMinimumSize(new Dimension(20, 25));
		label_19.setMaximumSize(new Dimension(20, 25));
		label_19.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_19.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_19 = new GridBagConstraints();
		gbc_label_19.fill = GridBagConstraints.BOTH;
		gbc_label_19.insets = new Insets(0, 0, 5, 5);
		gbc_label_19.gridx = 3;
		gbc_label_19.gridy = 3;
		add(label_19, gbc_label_19);

		label_20 = new JLabel(" ");
		label_20.setForeground(Color.WHITE);
		label_20.setHorizontalAlignment(SwingConstants.CENTER);
		label_20.setSize(new Dimension(20, 25));
		label_20.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_20.setHorizontalTextPosition(SwingConstants.CENTER);
		label_20.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_20.setMinimumSize(new Dimension(20, 25));
		label_20.setMaximumSize(new Dimension(20, 25));
		label_20.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_20.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_20 = new GridBagConstraints();
		gbc_label_20.fill = GridBagConstraints.BOTH;
		gbc_label_20.insets = new Insets(0, 0, 5, 5);
		gbc_label_20.gridx = 4;
		gbc_label_20.gridy = 3;
		add(label_20, gbc_label_20);

		label_21 = new JLabel(" ");
		label_21.setForeground(Color.WHITE);
		label_21.setHorizontalAlignment(SwingConstants.CENTER);
		label_21.setSize(new Dimension(20, 25));
		label_21.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_21.setHorizontalTextPosition(SwingConstants.CENTER);
		label_21.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_21.setMinimumSize(new Dimension(20, 25));
		label_21.setMaximumSize(new Dimension(20, 25));
		label_21.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_21.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_21 = new GridBagConstraints();
		gbc_label_21.fill = GridBagConstraints.BOTH;
		gbc_label_21.insets = new Insets(0, 0, 5, 5);
		gbc_label_21.gridx = 5;
		gbc_label_21.gridy = 3;
		add(label_21, gbc_label_21);

		label_22 = new JLabel(" ");
		label_22.setForeground(Color.WHITE);
		label_22.setHorizontalAlignment(SwingConstants.CENTER);
		label_22.setSize(new Dimension(20, 25));
		label_22.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_22.setHorizontalTextPosition(SwingConstants.CENTER);
		label_22.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_22.setMinimumSize(new Dimension(20, 25));
		label_22.setMaximumSize(new Dimension(20, 25));
		label_22.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_22.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_22 = new GridBagConstraints();
		gbc_label_22.fill = GridBagConstraints.BOTH;
		gbc_label_22.insets = new Insets(0, 0, 5, 5);
		gbc_label_22.gridx = 6;
		gbc_label_22.gridy = 3;
		add(label_22, gbc_label_22);

		label_23 = new JLabel(" ");
		label_23.setForeground(Color.WHITE);
		label_23.setHorizontalAlignment(SwingConstants.CENTER);
		label_23.setSize(new Dimension(20, 25));
		label_23.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_23.setHorizontalTextPosition(SwingConstants.CENTER);
		label_23.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_23.setMinimumSize(new Dimension(20, 25));
		label_23.setMaximumSize(new Dimension(20, 25));
		label_23.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_23.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_23 = new GridBagConstraints();
		gbc_label_23.fill = GridBagConstraints.BOTH;
		gbc_label_23.insets = new Insets(0, 0, 5, 5);
		gbc_label_23.gridx = 7;
		gbc_label_23.gridy = 3;
		add(label_23, gbc_label_23);

		label_24 = new JLabel(" ");
		label_24.setForeground(Color.WHITE);
		label_24.setHorizontalAlignment(SwingConstants.CENTER);
		label_24.setSize(new Dimension(20, 25));
		label_24.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_24.setHorizontalTextPosition(SwingConstants.CENTER);
		label_24.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_24.setMinimumSize(new Dimension(20, 25));
		label_24.setMaximumSize(new Dimension(20, 25));
		label_24.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_24.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_24 = new GridBagConstraints();
		gbc_label_24.fill = GridBagConstraints.BOTH;
		gbc_label_24.insets = new Insets(0, 0, 5, 5);
		gbc_label_24.gridx = 8;
		gbc_label_24.gridy = 3;
		add(label_24, gbc_label_24);

		label_25 = new JLabel(" ");
		label_25.setForeground(Color.WHITE);
		label_25.setHorizontalAlignment(SwingConstants.CENTER);
		label_25.setSize(new Dimension(20, 25));
		label_25.setAlignmentX(Component.CENTER_ALIGNMENT);
		label_25.setHorizontalTextPosition(SwingConstants.CENTER);
		label_25.setBorder(new LineBorder(new Color(51, 255, 0), 3));
		label_25.setMinimumSize(new Dimension(20, 25));
		label_25.setMaximumSize(new Dimension(20, 25));
		label_25.setFont(new Font("Aharoni", Font.BOLD, 29));
		label_25.setBackground(Color.WHITE);
		GridBagConstraints gbc_label_25 = new GridBagConstraints();
		gbc_label_25.fill = GridBagConstraints.BOTH;
		gbc_label_25.insets = new Insets(0, 0, 5, 5);
		gbc_label_25.gridx = 9;
		gbc_label_25.gridy = 3;
		add(label_25, gbc_label_25);

		defLabel = new JLabel("");
		defLabel.setFont(new Font("Tahoma", Font.BOLD, 17));
		defLabel.setForeground(Color.WHITE);
		GridBagConstraints gbc_label1 = new GridBagConstraints();
		gbc_label1.gridwidth = 3;
		gbc_label1.insets = new Insets(0, 0, 0, 5);
		gbc_label1.gridx = 4;
		gbc_label1.gridy = 5;
		add(defLabel, gbc_label1);
	}


	public void setLet(int i, String ch) {
		switch (i) {
		case 0:
			label_0.setText(ch);
			break;
		case 1:
			label_1.setText(ch);
			break;
		case 2:
			label_2.setText(ch);
			break;
		case 3:
			label_3.setText(ch);
			break;
		case 4:
			label_4.setText(ch);
			break;
		case 5:
			label_5.setText(ch);		
			break;
		case 6:
			label_6.setText(ch);
			break;
		case 7:
			label_7.setText(ch);
			break;
		case 8:
			label_8.setText(ch);
			break;
		case 9:
			label_9.setText(ch);
			break;
		case 10:
			label_10.setText(ch);
			break;
		case 11:
			label_11.setText(ch);
			break;
		case 12:
			label_12.setText(ch);
			break;
		case 13:
			label_13.setText(ch);
			break;
		case 14:
			label_14.setText(ch);		
			break;
		case 15:
			label_15.setText(ch);
			break;
		case 16:
			label_16.setText(ch);
			break;
		case 17:
			label_17.setText(ch);
			break;
		case 18:
			label_18.setText(ch);
			break;
		case 19:
			label_19.setText(ch);
			break;
		case 20:
			label_20.setText(ch);
			break;
		case 21:
			label_21.setText(ch);
			break;
		case 22:
			label_22.setText(ch);
			break;
		case 23:
			label_23.setText(ch);
			break;
		case 24:	
			label_24.setText(ch);
			break;
		case 25:
			label_25.setText(ch);
			break;
		}
	}


	public void setVis(int i) {
		switch (i) {
		case 0:
			label_0.setVisible(true);
			break;
		case 1:
			label_1.setVisible(true);
			break;
		case 2:
			label_2.setVisible(true);
			break;
		case 3:
			label_3.setVisible(true);
			break;
		case 4:
			label_4.setVisible(true);
			break;
		case 5:
			label_5.setVisible(true);
			break;
		case 6:
			label_6.setVisible(true);
			break;
		case 7:
			label_7.setVisible(true);
			break;
		case 8:
			label_8.setVisible(true);
			break;
		case 9:
			label_9.setVisible(true);
			break;
		case 10:
			label_10.setVisible(true);
			break;
		case 11:
			label_11.setVisible(true);
			break;
		case 12:
			label_12.setVisible(true);
			break;
		case 13:
			label_13.setVisible(true);
			break;
		case 14:
			label_14.setVisible(true);
			break;
		case 15:
			label_15.setVisible(true);
			break;
		case 16:
			label_16.setVisible(true);
			break;
		case 17:
			label_17.setVisible(true);
			break;
		case 18:
			label_18.setVisible(true);
			break;
		case 19:
			label_19.setVisible(true);
			break;
		case 20:
			label_20.setVisible(true);
			break;
		case 21:
			label_21.setVisible(true);
			break;
		case 22:
			label_22.setVisible(true);
			break;
		case 23:
			label_23.setVisible(true);
			break;
		case 24:	
			label_24.setVisible(true);
			break;
		case 25:
			label_25.setVisible(true);
			break;
		}
	}


	public void InitLet(int i) {
		switch (i) {
		case 0:
			label_0.setVisible(false);
			break;
		case 1:
			label_1.setVisible(false);
			break;
		case 2:
			label_2.setVisible(false);
			break;
		case 3:
			label_3.setVisible(false);
			break;
		case 4:
			label_4.setVisible(false);
			break;
		case 5:
			label_5.setVisible(false);	
			break;
		case 6:
			label_6.setVisible(false);	
			break;
		case 7:
			label_7.setVisible(false);
			break;
		case 8:
			label_8.setVisible(false);
			break;
		case 9:
			label_9.setVisible(false);
			break;
		case 10:
			label_10.setVisible(false);
			break;
		case 11:
			label_11.setVisible(false);
			break;
		case 12:
			label_12.setVisible(false);
			break;
		case 13:
			label_13.setVisible(false);
			break;
		case 14:
			label_14.setVisible(false);
			break;
		case 15:
			label_15.setVisible(false);
			break;
		case 16:
			label_16.setVisible(false);
			break;
		case 17:
			label_17.setVisible(false);
			break;
		case 18:
			label_18.setVisible(false);
			break;
		case 19:
			label_19.setVisible(false);
			break;
		case 20:
			label_20.setVisible(false);
			break;
		case 21:
			label_21.setVisible(false);
			break;
		case 22:
			label_22.setVisible(false);
			break;
		case 23:
			label_23.setVisible(false);
			break;
		case 24:	
			label_24.setVisible(false);
			break;
		case 25:
			label_25.setVisible(false);
			break;
		}
	}


	public void initPhrasePanel () {
		for (int i=0; i<=25; i++) {
			InitLet(i);
		}
		defLabel.setText("");	
	}


	public void initPanelToPhrase (Phrase p) {
		String exp1 = p.getBlanks().toString(); 
		String def = p.getDef();
		defLabel.setText(def);
		int num, i, k;
		String[] words = new String[4];

		num = 0;
		for (i=0; i<4; i++) {
			k = exp1.indexOf(" ");
			if (k == -1) 
				break;
			words[i] = exp1.substring(0, k);
			exp1 = exp1.substring(k+1);
			num++;
		} 
		words[num] = exp1;
		num ++;     //number of words


		if (num == 1) {
			k = (10-words[0].length())/2+8;
			insert(k, words[0]);
		}

		else if (num == 2) {

			if ((words[0].length()+words[1].length()+1) < 10) {
				k = (10-(words[0].length()+words[1].length()+1))/2+8;				
				insert(k, words[0]+" "+words[1]);
			}
			else {
				if (words[0].length() > 10) {
					k = (10-words[0].length())/2+8;
					insert(k, words[1]);
					k = (8-words[1].length())/2+18;
					insert(k, words[1]);
				}
				else {
					k = (8-words[0].length())/2;
					insert(k, words[0]);
					k = (10-words[1].length())/2+8;
					insert(k, words[1]);
				}
			}
		}

		else if (num == 3) {

			if ((words[0].length()+words[1].length()+1) < 10) {
				k = (10-(words[0].length()+words[1].length()+1))/2+8;				
				insert(k, words[0]+" "+words[1]);
				k = (18-words[2].length()/2+18);
				insert(k, words[2]);
			}
			else {  
				k = (8-words[0].length())/2;
				insert(k, words[0]);
				if ((words[1].length()+words[2].length()+1) < 10) {
					k = (10-(words[0].length()+words[1].length())+1)/2+8;				
					insert(k, words[1]+" "+words[2]);
				}
				else {

					k = (10-words[1].length())/2+8;
					insert(k, words[1]);
					k = (8-words[2].length())/2+18;
					insert(k, words[2]);
				}

			}
		}

		else if (num == 4) {
			insert(0, words[0]);
			k = words[0].length()+1;

			if (words[1].length() <= (8-k)) {
				insert(k, words[1]);
				k = 8;
			}
			else {
				insert(8,words[1]);
				k = 9+words[1].length();
			}

			if (words[2].length() <= (18-k)) {
				insert(k, words[2]);
				k = (8-words[3].length())/2+18;
				insert(k, words[3]);
			}
			else {
				insert(k, words[2]);
				k +=  words[2].length()+1;
				insert(k, words[3]);
			}

		}
	}


	private void insert(int k, String st) {
		for (int j=0 ; j<st.length(); j++){
			setVis(k);
			if (st.charAt(j) == '-') 
				setLet(k,"-");
			else if (st.charAt(j) == '#') 
				setLet(k, " ");
			else if (st.charAt(j) == ' ') 
				InitLet(k);
			else 
				setLet(k, st.charAt(j)+"");
			k++;
		}	
	}


}























